package com.tony.training.issuetrack.view;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.MappingDispatchAction;

public class UpdateIssueAction extends MappingDispatchAction {

	/* forward name="goSearch" path="/pages/updateSearch.jsp" */
	private final static String GOSEARCH = "goSearch";
	private final static String LIST = "updateList";
	private final static String UPDATE_RESULT = "updateDetail";

	public ActionForward search(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		// TODO process request and return an ActionForward instance, for example:
		 return mapping.findForward(GOSEARCH);
	}
	public ActionForward list(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		// TODO process request and return an ActionForward instance, for example:
		return mapping.findForward(LIST);
	}
	public ActionForward update(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
	throws Exception {
		// TODO process request and return an ActionForward instance, for example:
		return mapping.findForward(UPDATE_RESULT);
	}
}
